import { CanvasContext, } from "./designType";
import { Dimension } from "./Dimension";
import { Shape } from "./Shape";

export class Handle {
  constructor(
    public dimension: Dimension,    // 使用 Dimension 表示中梃的尺寸
    public shape: Shape,             // 把手的形状
  ) {}

  // 绘制把手的方法
  draw(ctx: CanvasContext): void {
    this.shape.draw(ctx);
  }
}
